<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for collection "note".
 *
 * @property \MongoDB\BSON\ObjectID|string $_id
 */
class Note extends \yii\mongodb\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function collectionName()
    {
        return 'note';
    }

    /**
     * {@inheritdoc}
     */
    public function attributes()
    {
        return [
            '_id',
            'title',
            'status',
            'upTime',
            'author',
            'catatory',
            'area',
            'link'
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            '_id' => '编号',
            'title'=>'帖子',
            'status'=>'处理状态',
            'upTime'=>'更新时间',
            'author'=>'作者',
            'catatory'=>'分类',
            'area'=>'区域',
        ];
    }
}
